// 接口的继承

interface Person{
    name: string,
    eating: ()=> void
}

interface Animal{
    running: ()=> void
}
//接口是支持多继承的(类不支持多继承)
interface Student extends Person, Animal{
    son: number
}

//接口定义规范
const stu:Student = {
    son:110,
    name: "why",
    eating: function(){

    },
    running: function(){

    }
}